home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Hyper
/
Q-R
/
Recognize.94.cpt
/
Recognize .94
/
card_8319.txt
< prev
next >
Wrap
Text File
|
1988-11-13
|
5KB
|
184 lines
-- card: 8319 from stack: in.94
-- bmap block id: 0
-- flags: 0000
-- background id: 2792
-- name: broadcast
----- HyperTalk script -----
on opencard
global exitcmd
put "" into exitcmd
sendsport b
put empty into bkgnd field infield
end opencard
on docardsearch
if bkgnd field infield is empty then exit docardsearch
if charsavailable() <> 0 then idle
if bkgnd field infield contains "Node List" then theyell
end docardsearch
on dobulletin
global username
put empty into node3
put empty into node4
put empty into node5
repeat until line 1 of bkgnd field infield contains "Node list"
delete line 1 of bkgnd field infield
end repeat
get the number of lines of bkgnd field "Infield"
if it is 6 then put 3 into torepeat
if it is 7 then put 4 into torepeat
if it is 8 then put 5 into torepeat
repeat with i= 3 to torepeat
put "node"&i into thenode
put "put line "&i&" of bkgnd field infield into "&thenode into todo
do todo
end repeat
repeat 7
delete char 1 of node3
end repeat
repeat 7
delete char 1 of node4
end repeat
repeat 7
delete char 1 of node5
end repeat
if node3 contains username then put "All" into node3
if node4 contains username then put "All" into node4
if node4 is "All" then
answer "Who do you want to send it to?" with node3 or node5 or node4
else
answer "Who do you want to send it to?" with node5 or node4 or node3
end if
put it into theanswer
if theanswer contains "3" then put 1 into whichone
if theanswer contains "4" then put 2 into whichone
if theanswer contains "5" then put 3 into whichone
if theanswer contains "All" then put A into whichone
ask "Message to send:"
put it into themessage
if themessage is empty then
sendsport return
go to card mainmenu
exit dobulletin
end if
sendsport whichone
sendsport themessage
sendsport return
pop card
end dobulletin
on theyell
global theusername,node1,node2,node3
getlines
if item 2 of node1 contains theusername then put "All" into item 2 of node1
if item 2 of node2 contains theusername then put "All" into item 2 of node2
if item 2 of node3 contains theusername then put "All" into item 2 of node3
put item 1 of node1&","& item 1 of node2&","&item 1 of node3 into themenu
ShowDialog 4,4745,"Broadcast:","","Your Broadcast",theMenu,1
if the result is empty then
put "Empty" into theresult
else
put the result into theresult
handlebulletin theresult
end if
end theyell
on handlebulletin what
global node1,node2,node3
put what
put item 1 of what into thenode
put item 2 of what into themessage
put "Node"&thenode into temp
put "put char 1 of "&temp&" into whichone" into todo
do todo
if themessage is empty then
sendsport return
go to card mainmenu
exit handlebulletin
end if
sendsport whichone
sendsport themessage
sendsport return
pop card
end handlebulletin
on getlines
global node1,node2,node3
put empty into node3
put empty into node4
put empty into node5
repeat until line 1 of bkgnd field infield contains "Node list"
delete line 1 of bkgnd field infield
end repeat
get the number of lines of bkgnd field "Infield"
if it is 6 then put 3 into torepeat
if it is 7 then put 4 into torepeat
if it is 8 then put 5 into torepeat
repeat with i= 3 to torepeat
put "node"&i into thenode
put "put line "&i&" of bkgnd field infield into "&thenode into todo
do todo
end repeat
put word 2 of node3 into number3
put word 2 of node4 into number4
put word 2 of node5 into number5
repeat 7
delete char 1 of node3
end repeat
repeat 7
delete char 1 of node4
end repeat
repeat 7
delete char 1 of node5
end repeat
put number3 into item 1 of node1
put number4 into item 1 of node2
put number5 into item 1 of node3
put node3 into item 2 of node1
put node4 into item 2 of node2
put node5 into item 2 of node3
end getlines
-- part 2 (field)
-- low flags: 81
-- high flags: 0007
-- rect: left=14 top=40 right=257 bottom=491
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 256
-- line height: 13
-- part name: Bulletins
-- part contents for background part 1
----- text -----
Broadcast a message
-- part contents for background part 3
----- text -----
Node list
---------
Node 1:CW NORMAN
Type 'A' for all nodes.
Which node(RETURN to abort)>